import request from '@/utils/request'

export default {
  // 添加
  add: data => request('/api/ucenter/user', {
    method: 'POST',
    data,
  }),

  // 分页查询
  findPage: params => request('/api/ucenter/user/page', {
    method: 'get',
    params,
  }),

  // 重置密码
  resetPassword: userId => request(`/api/ucenter/user/${userId}/resetPassword`, {
    method: 'POST',
  }),

  // 冻结
  freeze: userId => request(`/api/ucenter/user/${userId}/freeze`, {
    method: 'POST',
  }),

  // 解冻
  unFreeze: userId => request(`/api/ucenter/user/${userId}/unFreeze`, {
    method: 'POST',
  }),
}
